<template>
  <div>
    <el-form ref="form" style="display: flex" :model="form" label-width="80px">
      <el-form-item label="材料名称">
        <el-input v-model="form.name" placeholder="请输入姓名"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button size="small" icon="el-icon-search">查询</el-button>
        <el-button size="small" icon="el-icon-refresh-right">重置</el-button>
        <el-button size="small" style="background-color: rgb(212, 169, 233)" @click="zeng"><i class="el-icon-circle-plus-outline"></i>新增材料</el-button>
      </el-form-item>
    </el-form>
    <!-- 表格 -->
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column align="center" fixed prop="date" label="id" width="150"> </el-table-column>
      <el-table-column prop="name" align="center" label="材料名称" > </el-table-column>
      <el-table-column prop="province" align="center" label="材料地址" > </el-table-column>
      <el-table-column fixed="right" align="center" label="操作" >
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" size="small" style="border-radius: 6px;">下载</el-button>
          <el-button size="small" style="border-radius: 6px; margin-left: 20px;">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <!-- 弹框 -->
    <Tan ref="aa" />
  </div>
</template>
<script>
  import Tan from './Stor_dialog.vue'
export default {
  components:{
  Tan},
  data() {
    return {
        tableData:[
      {
      name:12}
      ],
      form: {
        name: ''
      }
    }
  },
  methods: {
  zeng(){
  this.$refs.aa.dialogFormVisible=true
  },
  }
}
</script>
